package hjw.com.dao;

import hjw.com.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    User findByPhone(@Param("phone") String phone);
    List<Map<String ,Object>> findStudents(String clzno);
    User findByUid(@Param("id") String id, @Param("role") String role);
    List<User> findByRole(String role);//获取对应角色的用户信息
    int count(String role);
    List<User> findByLine(Map<String, Object> map);

    int updateById(User user);

    int add(User user);

    int delById(String id);



}
